﻿<%-- 
    Document   : index
    Created on : Mar 3, 2009, 12:39:47 PM
    Author     : Miskolczi Péter
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<%@ page import="com.amkai.aes.aescommon.Version" %>
<%@ page import="com.amkai.common.extensions.memory.MemoryUtils" %>
<%@ page import="com.amkai.aes.server.servlet.jobs.MemoryLoggerJob" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Amkai Enterprise Solution</title>
        <style type="text/css">
<!--
.style2 {font-family: Cambria; font-size: xx-small;}
-->
        </style>
</head>
    <body>
    	<img src="images/amkaiSolutions.gif" alt="Amkai" width="237" height="49" longdesc="http://www.amkaisolutions.com"> <br>
	<span class="style2">The Only Complete Software Provider for Surgical Centers and Hospitals</span>
    	<h2>Welcome to Amkai Enterprise Server</h2>
        <table>
	        <tr><td>AmkaiOffice&#0153; version details: <br>
				<%=Version.getVersionInfo(true)%></td></tr>
        	<tr><td><br>See current user sessions <a href="/manager/html/sessions?path=/aesws">here</a>.</td></tr>
	        <tr><td>
	        		<% 
	        			int free = MemoryUtils.maxFreePercent();
	        			int used = 100 - free;
	        		%>
	            	<table align="left" border="0" cellpadding="0" cellspacing="0"><tr>
	            		<td>Memory graph&nbsp;&nbsp;</td>
                		<td>
                			<font size="1">
		                    	<table  border="0" cellpadding="0" cellspacing="0" width="100%"><tr>
		                            <td bgcolor="#cc0033" width="<%=used%>">
		                                <a title="Used Memory ( <%=used%> %)">
		                                	<img src="images/spacer.gif"
		                                         width="100%"
		                                         height="2"
		                                         border="0" title="Used Memory ( <%=used%> %)">
		                                </a>
		                            </td>
		                            <td bgcolor="#66cc33" width="<%=free%>">
		                                <a title="Free Memory ( <%=free%> %)">
		                                	<img src="images/spacer.gif"
		                                         width="100%"
		                                         height="2"
		                                         border="0" title="Free Memory ( <%=free%> %)">
		                                 </a>
		                            </td>
		                  		</tr></table>
	                  		</font>
	                  	</td>
                  		<td><b><font size="1">&nbsp;&nbsp;<%=free%>  % Free </b>&nbsp;&nbsp;(<a href="forcegc.jsp">Force garbage collection</a>)</font></td>
	              	</tr></table>
        		</td>
			</tr>
        	<tr><td><pre><%=MemoryLoggerJob.buildAllInfo(MemoryLoggerJob.Status.RUNNING, true, false)%></pre></td></tr>
        </table>
        <font size="1"> Powered by <a href="http://www.amkaisolutions.com">www.amkaisolutions.com</a>. </font>
    </body>
</html>
